import { viteMockServe } from 'vite-plugin-mock';

export default function setupMockPlugin(isBuild: boolean) {
    if (!isBuild) {
        return viteMockServe({
            mockPath: 'mock',
            localEnabled: !isBuild,
        })
    }
}